# Contributor:
# Maintainer: Jay Christopherson <jaychris@gmail.com>
pkgname=udpcast
pkgver=20120424
pkgrel=0
pkgdesc="Port of UDPcast file transfer tool"
url="https://www.udpcast.linux.lu/index.html"
arch="all"
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev linux-headers m4 perl"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="https://www.udpcast.linux.lu/download/udpcast-$pkgver.tar.gz
	console.patch
	"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure --prefix=/usr || return 1
        make || return 1
}

package() {
	cd "$builddir"
        make DESTDIR="$pkgdir" install || return 1
}

sha512sums="b16a1d3215cbefba1e4d6bb0b38f4715e476c41ddc93fa1a38c5e707af786f4a97badd1eea494f7838f276f370af414d8379db04a14b9b3ff32a1318f16db33d  udpcast-20120424.tar.gz
7abfcf317b5985f680258abc913a48cfd21a26f77625780e57d93960f7efeb0f214ce4d4188bd75cedb9dccac5a5fe9befed2044e3df3b0e8228ac6e0663c41c  console.patch"
